/*
 * Copyright (C) 2008,2009,2010,2011  Paulo Cesar Pereira de Andrade.
 *
 * This is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * Authors:
 *	Paulo Cesar Pereira de Andrade
 */

#ifndef _eread_h
#define _eread_h

#include "etypes.h"

/*
 * Types
 */
struct emacro {
    emacro_t	*next;
    eobject_t	 value;
    esymbol_t	*name;
    eint32_t	 key;

    ehash_t	*hash;		/* arguments hash */
    ebool_t	 vararg;
};

/*
 * Prototypes
 */
extern eobject_t
eread_object(void);

extern void
epush_input(estream_t *stream);

extern void
init_read(void);

/*
 * Externs
 */
extern estream_t *input;
extern eobject_t  object_eof;

#endif /* _eread_h */
